<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>赋值运算符</title>
</head>
<body>
<script>
  //赋值运算符
  var n1 = 10;
  //加等运算符
  console.log(n1 += 10);
  //减等运算符
  n1 -= 10;
  console.log(n1);
  //乘等运算符
  console.log(n1 *= 10);
  //除等运算符
  n1 /= 10;
  console.log(n1);
  //取余运算符
  console.log(n1 %= 10);
</script>
</body>
</html>